<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/easyui/default/easyui.css"/>
		<script type="text/javascript" src="../../js/jquery.min.js"></script>
		<script type="text/javascript" src="../../js/bootstrap/bootstrap.min.js"></script>
		<script type="text/javascript" src="../../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../js/easyui/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="../../js/self/util.js"></script>
		<script type="text/javascript" src="../../js/self/ssm.operate.js"></script>
		<script type="text/javascript" src="../../js/bootstrap/laydate.js"></script>
	</head>
	<body>
		<form id="form_operateEntity" th:action="@{/vulnerability-scan/operate}" method="post" get_url="/vulnerability-scan/get">
			<input type="hidden" name="id" th:value="${id}">
			<table class="table table-bordered" style="width: 50%;" id="table_operateEntity">
				<tr>
					<td width="20%">扫描名称</td>
					<td width="50%">
						<input id="valid_text_scanName" name="scanName" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validScanName">扫描名称不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">关联任务</td>
					<td width="50%">
						<select id="valid_select_relatedTask" class="form-control" name="relatedTask">
							<option value="">---无---</option>
							<option th:each="task: ${taskList}" th:value="${task.id}" th:text="${task.taskName}"
									th:selected="${task.id == scan.relatedTask}"></option>
						</select>
					</td>
					<td><span id="span_validRelatedTask">关联任务不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">扫描目标ip</td>
					<td width="50%">
						<input id="valid_text_scanTarget" name="scanTarget" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validScanTarget">扫描目标ip不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">扫描策略</td>
					<td width="50%">
						<input id="valid_text_scanPolicy" name="scanPolicy" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validScanPolicy">扫描策略不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">扫描开始时间</td>
					<td width="50%">
						<input id="valid_text_scanTime" name="scanTime" class="form-control" autocomplete="off" datetype="datetime"/>
					</td>
					<td><span id="span_validScanTime">扫描开始时间不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">扫描的漏洞</td>
					<td width="50%">
						<input id="valid_text_foundVul" name="foundVul" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validFoundVul">扫描的漏洞不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">漏洞编号</td>
					<td width="50%">
						<input id="valid_text_vulNo" name="vulNo" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validVulNo">漏洞编号不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">扫描工具</td>
					<td width="50%">
						<input id="valid_text_scanTools" name="scanTools" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validScanTools">扫描工具不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">漏洞严重性等级</td>
					<td width="50%">
						<select id="valid_select_riskLevel" class="form-control" name="riskLevel">
							<option value="">---请选择---</option>
							<option value="高" th:selected="${scan.riskLevel == '高'}">高</option>
							<option value="中" th:selected="${scan.riskLevel == '中'}">中</option>
							<option value="低" th:selected="${scan.riskLevel == '低'}">低</option>
						</select>
					</td>
					<td><span id="span_validRiskLevel">漏洞严重性等级：高、中、低。不能为空</span></td>
				</tr>
				<tr>
					<td colspan="3">
						<button type="button" class="btn btn-success" id="button_sureOperate">确定</button>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
